package org.example.examsystem.service;


import org.example.examsystem.entity.Paper;
import org.example.examsystem.mapper.PaperMapper;
import org.example.examsystem.service.PaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaperServiceImpl implements PaperService {

    @Autowired
    private PaperMapper paperMapper;

    @Override
    public List<Paper> getPaperDetailsByEid(Integer eid) {
        return paperMapper.getPaperDetailsByEid(eid);
    }
    @Override
    public void savePaper(Paper paper) {
        paperMapper.insertPaper(paper);
    }
}